package com.upb.webserver.common.pojo.chain;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;
import java.util.Set;

@Data
public class ReqAddRunningFiscoChainVO {
    @NotNull
    private Byte encryptionId;//证书加密类型：0，非国密；1，国密
    @NotBlank
    private String chainName;
    @NotBlank
    private String chainVersion;
    private String description;
    @NotNull
    private Set<Integer> orgIdSet;
    @NotNull
    private List<FrontInfoVO> frontInfoVOList;

    @Data
    public static class FrontInfoVO {
        @NotNull
        private Integer orgId;
        @NotNull
        private Integer hostId;
        @NotNull
        private Integer frontPort;
        private String description;
    }
}
